package com.tensquare.notice.feign;

import entity.Result;
import entity.StatusCode;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient("tensquare-article")
public interface ArticleClient {

    //根据id查询文章
    @RequestMapping(value = "article/{id}",method = RequestMethod.GET)
    public Result findById(@PathVariable("id") String id);
}
